package com.huangjue.backend.mapper;

import com.huangjue.backend.entity.UserCertificate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface UserCertificateMapper {
    int insert(UserCertificate userCertificate);
    
    UserCertificate selectByUserIdAndCourseId(@Param("userId") Long userId, @Param("courseId") Integer courseId);
    
    List<UserCertificate> selectByUserId(@Param("userId") Long userId);
} 